﻿@model List<string>
 @Html.Hidden("ukryty", @Model[0], new { @id="gdzie" })
 <span class="blockMenu" id="BM1" >
 @Html.ActionLink("Panel administratora", MVC.ProjectAdmin.ActionNames.Index, MVC.ProjectAdmin.Name, new { projectName = Model[1] }, new { @class = "buttonM", @id="PA"} )

 @Html.ActionLink("Edytuj projekt", MVC.ProjectAdmin.ActionNames.EditProject, MVC.ProjectAdmin.Name, new { projectName = Model[1] }, new { @class = "buttonM", @id = "EP"})
 @Html.ActionLink("Zarządzaj użytkownikami", MVC.ProjectAdmin.ActionNames.ManageUser, MVC.ProjectAdmin.Name, new { projectName = Model[1] }, new { @class = "buttonM", @id = "ZU" })
 @Html.ActionLink("Zarządzaj zespołami", MVC.ProjectAdmin.ActionNames.ManageTeam, MVC.ProjectAdmin.Name, new { projectName = Model[1] }, new { @class = "buttonM", @id = "ZT" })
  
   </span><br />
     <span class="blockMenu" id="BM2">
 @Html.ActionLink("Zarządzaj Wersjami", MVC.ProjectAdmin.ActionNames.ProjectReleases, MVC.ProjectAdmin.Name, new { projectName = Model[1] }, new { @class = "buttonM", @id = "WP", })
  @Html.ActionLink("Wymagania funkcjonalne", MVC.ProjectAdmin.ActionNames.FunctionalRequirements, MVC.ProjectAdmin.Name, new { projectName = Model[1] }, new { @class = "buttonM", @id = "WF" })


  @Html.ActionLink("Zarządzaj funkcjonalnościami", MVC.ProjectAdmin.ActionNames.ProjectFeatures, MVC.ProjectAdmin.Name, new { projectName = Model[1] }, new { @class = "buttonM", @id = "F" })
  @Html.ActionLink("Zarządzaj zadaniami", MVC.ProjectAdmin.ActionNames.ProjectTasks, MVC.ProjectAdmin.Name, new { projectName = Model[1] }, new { @class = "buttonM", @id = "Z" })

</span>
<script type="text/javascript">
    var gdzie = $('#gdzie').attr('value');
    $('#' + gdzie).css('background-color', '#DDBBBB');
    $('#' + gdzie).css('color', '#555555');
    if ($("#" + gdzie).parent().attr("id") == "BM1") {
        var bm1html = $("#BM1").html();
        var bm2html = $("#BM2").html();
        $("#BM1").html(bm2html);
        $("#BM2").html(bm1html);
    }
  
 </script>

